﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Entity.BaseEntitys
{

    public interface IUpdateEntity
    {
        /// <summary>
        /// Modify the user
        /// </summary>
        Guid? UpdateUserId { get; set; }

        /// <summary>
        /// Modify the user
        /// </summary>
        DateTime? UpdateTime { get; set; }
    }

    [Index(nameof(UpdateUserId), nameof(UpdateTime))]
    public class UpdateEntity<T> : CreateEntity<T>, IUpdateEntity,ICreateEntity,IEntity<T>
    {
        public virtual Guid? UpdateUserId { get ; set ; }
        public virtual DateTime? UpdateTime { get ; set ; }
    }

 
}
